<template>
  <div style="padding-top: 10vh">
    <a-result status="404" title="404 资源不存在" sub-title="路径不存在或无权访问">
      <template #extra>
        <a-button @click="goHome">返回首页</a-button>
      </template>
    </a-result>
  </div>
</template>

<script lang="ts" setup>
  import { useRouter } from 'vue-router';
  import { BASE_HOME } from '@/enums/commEnum';

  let router = useRouter();

  function goHome() {
    router.push(BASE_HOME);
  }
</script>

<style scoped></style>
